import 'package:flutter/material.dart';

class SearchHotwordPage extends StatelessWidget {
  final List<Widget> hotkeyWidgets;

  SearchHotwordPage({Key key, @required this.hotkeyWidgets}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: <Widget>[
        Padding(
          padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),
          child: Text(
            '大家都在搜',
            style: TextStyle(
              color: Colors.black,
              fontSize: 16.0,
            ),
          ),
        ),
        Padding(
          padding: const EdgeInsets.fromLTRB(16, 0, 16, 8),
          child: Wrap(
            spacing: 8.0,
            runSpacing: 4.0,
            alignment: WrapAlignment.start,
            children: hotkeyWidgets,
          ),
        ),
      ],
    );
  }
}
